package com.kingint.mbg.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class GoodsReturn implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父类id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty(value = "物品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "类型（1，酒水，2，布草，3，易碎品），三大类下可以建类，三层")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;

    @ApiModelProperty(value = "对应哪个酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "状态（0，正常，1，删除）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "判断是否是物品还是分类：0是物品，1是分类")
    @TableField("isgoods")
    private Integer isgoods;

    @TableField(exist = false)
    private List<GoodsReturn> goodsList;
}
